package cn.edu.dgut.css.springboottest2.Event;

import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.ApplicationListener;

/**
 * @Author:GooGa
 * @Data:2020/11/1 22:43
 */
public class ApplicationReadyEventListener implements ApplicationListener<ApplicationReadyEvent> {

    @Override
    public void onApplicationEvent(ApplicationReadyEvent applicationReadyEvent) {

        System.out.println("after CommandLineRunner : ");
        System.out.println(">>>>>context publishEvent ApplicationReadyEvent<<<<<");

    }

}
